first things first
The most important task gets priority, as in
I very much wanted to see that movie, but first things first—the paper's due tomorrow
. This adage was first recorded in 1545.